package com.iqiyi.pps.epg.core.service.reservation;

import com.iqiyi.pps.epg.api.model.web.reservation.TReservation;
import com.iqiyi.pps.epg.core.dao.base.Page;
import com.iqiyi.pps.epg.core.dao.base.PropertyFilter;
import com.iqiyi.pps.epg.core.model.reservation.ReserveControl;

import java.util.List;

public interface ReservationService {
    static final int IS_START_TIME = 1;
    static final int IS_END_TIME = 2;

    ReserveControl getById(long id);
    int add(List<TReservation> entities);
    boolean save(ReserveControl entity);
    boolean del(long id);
    boolean delByChannelId(long channelId);
    Page<ReserveControl> get(Page<ReserveControl> page, List<PropertyFilter> filters);
    List<ReserveControl> getDataByTime(int timeType, String startTime, String endTime);
    List<ReserveControl> getCurrentMinuteDataByChannelId(long channelId);
}
